﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using WebService_Newstore.Controller;

namespace WebService_Newstore.DTO
{
    public class BPDTO
    {
        public int idBP { get; set; }
        public DateTime dateBP { get; set; }
        public int statutBP { get; set; }
        public int idCmd { get; set; }
        public int typeBP { get; set; }
        public int idUser { get; set; }

        public BPDTO() { }

        public BPDTO(int id, DateTime date, int statut, int idCmd, int type, int idUser)
        {
            this.idBP = id;
            this.dateBP = date;
            this.statutBP = statut;
            this.idCmd = idCmd;
            this.typeBP = type;
            this.idUser = idUser;
        }

        public void saveBP()
        {
            ServiceBPController.SaveBPDTO(this);
        }

    }
}